package com.lap.auth.adapter.driving.persistence.api;

import com.lap.auth.adapter.driving.persistence.api.po.ApiPo;
import com.lap.auth.domain.api.Api;
import com.lap.auth.domain.api.BaseApiConverter;
import java.util.List;
import org.mapstruct.Mapper;

@Mapper(componentModel = "spring")
public interface ApiConverter extends BaseApiConverter {

  ApiPo toPo(Api api);

  List<ApiPo> toPoList(List<Api> list);

  Api toDomain(ApiPo apiPo);

  List<Api> toDomains(List<ApiPo> list);
}
